From 5ccd14f4ccd029499f4775c360cf0e32ce128ec1 Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Wed, 11 Jan 2006 20:03:53 +0100 Subject: [PATCH] map_domain_page per-vcpu cache still seems broken. Disable while I fix it. Signed-off-by: Keir Fraser --- xen/arch/x86/x86_32/domain_page.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xen/arch/x86/x86_32/domain_page.c b/xen/arch/x86/x86_32/domain_page.c index f835beee52..0189c737f3 100644 --- a/xen/arch/x86/x86_32/domain_page.c +++ b/xen/arch/x86/x86_32/domain_page.c @@ -40,6 +40,7 @@ void *map_domain_page(unsigned long pfn) cache = &d->arch.mapcache; hashent = &cache->vcpu_maphash[vcpu].hash[MAPHASH_HASHFN(pfn)]; +#if 0 if ( hashent->pfn == pfn ) { idx = hashent->idx; @@ -48,6 +49,7 @@ void *map_domain_page(unsigned long pfn) ASSERT(l1e_get_pfn(cache->l1tab[idx]) == pfn); goto out; } +#endif spin_lock(&cache->lock); @@ -90,7 +92,7 @@ void *map_domain_page(unsigned long pfn) cache->l1tab[idx] = l1e_from_pfn(pfn, __PAGE_HYPERVISOR); - out: +/*out:*/ va = MAPCACHE_VIRT_START + (idx << PAGE_SHIFT); return (void *)va; } -- 2.30.2